package db

import (
	"context"
	"github.com/qiniu/qmgo"
)


func Initmgo() *qmgo.Collection{
	ctx := context.Background()
	client, _ := qmgo.NewClient(ctx, &qmgo.Config{Uri: "mongodb://admin:pp888888@m2.moono.vip:27017"})
	db := client.Database("myapp")
	coll := db.Collection("users")
	return coll
}